<?
session_start();
      if (isset($_SESSION['k_username'])) {
  include('../../conexion.inc.php');
$link = Conectarse();
$editadopor=$_SESSION['k_username'];
$fecha = date("y-m-d h:i:s");
mysql_select_db("gotica_sociosgotica",$link);
$sql = "DELETE FROM tareas  WHERE idtarea=$_POST[valor]"; 
$resulta = mysql_query($sql);
?>
<SCRIPT LANGUAGE="javascript">
<? echo "location.href = \"tareas.php\" "; ?>
</SCRIPT>
<?
}else
{
	echo "<SCRIPT LANGUAGE=\"javascript\">";
echo "location.href = \"index.php\"";
echo "</SCRIPT>";
	}



?>
